package com.wish.building.controller;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.wish.building.entity.TbPremisesInfo;
import com.wish.building.service.ITbPremisesInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;

import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 楼盘信息表 前端控制器
 * </p>
 *
 * @author 高锦涛
 * @since 2022-03-23
 */
@RestController
public class TbPremisesInfoController {
    @Autowired
    ITbPremisesInfoService iTbPremisesInfoService;


   // @RequiresPermissions("housing:index")
    //@RequiresPermissions("housing:foc:index")
    @GetMapping("page")
    public IPage<TbPremisesInfo> page(TbPremisesInfo tbPremisesInfo,
                      @RequestParam(defaultValue = "1")Integer pageNum,
                      @RequestParam(defaultValue = "2")Integer pageSize){
        //List<TbPremisesInfo> list = iTbPremisesInfoService.list();
        IPage<TbPremisesInfo> page = iTbPremisesInfoService.pageTbPremisesInfo(tbPremisesInfo,pageNum,pageSize);
        return page;
    }


}
